package com.tzu.gateway.bean.handler;

import io.vertx.core.net.NetSocket;
import thirdpart.bean.CommonMsg;

/**
 * @Author: Tzu
 * @Date: 2020/11/15 16:14
 * @Version: 1.0
 * @Description: 消息处理器
 */


public interface IMsgHandler {

    default void onConnect(NetSocket socket){};

    default void onDisConnect(NetSocket socket){};

    default void onException(NetSocket socket,Throwable e){};

    void onCounterData(CommonMsg msg);
}
